export tag=v1.0
root:
	export ROOT=gitee.com/ceagle/geek_cloud_native/geek_cloud_native

build:
	echo "building httpserver binary"
	mkdir -p bin/amd64
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go  build -o bin/amd64 .
	#CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go  build -buildvcs=false -o bin/amd64 .

#release: build
release:
	echo "building httpserver container"
	docker build -t ceagle/httpserver:${tag} .

push: release
	echo "pushing geek_cloud_native/httpserver"
	docker push ceagle/httpserver:${tag}